package top.choviwu.shortUrl.util;

import java.util.Arrays;

public class ShorUrlUtils {

    private static final String STR_CODE = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";

    public static String genShorUrl(){

        //生成当前时间戳
        String ret = StringUtils.encode(System.currentTimeMillis()+StringUtils.genRandomNumber(4),7);
        System.out.println(ret);

        return ret;
    }

    public static void main(String[] args) {
        genShorUrl();
    }



}
